import { NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { CommonModule } from '@angular/common';
import { HttpModule } from '@angular/http';
import { PolymerElement } from '@vaadin/angular2-polymer';

import { PhotoComponent } from './photo.component';
import { DeviceListComponent } from './device/list.component';
import { OrderListComponent } from './order/list.component';
import { PayListComponent } from './pay/list.component';
import { LoginListComponent } from './login/list.component';
import { PhotoRoutingModule } from './photo-routing.module';

import { PhotoService } from '../service/photo.service';

@NgModule({
    imports: [
        CommonModule,
        HttpModule,
        PhotoRoutingModule
    ],
    declarations: [
        PolymerElement('vaadin-grid'),
        PhotoComponent,
        DeviceListComponent,
        OrderListComponent,
        PayListComponent,
        LoginListComponent
    ],
    providers: [
        PhotoService
    ],
    schemas: [CUSTOM_ELEMENTS_SCHEMA]
})
export class PhotoModule { }
